package com.okwanshiwu.pojo.pay;

import java.text.SimpleDateFormat;
import java.util.Date;
/**
 * alipay.trade.query (统一收单线下交易查询请求参数实体类)
 * 
 * @author master
 * @category pojo
 * 
 * 简单说明：此pojo封装了查询订单的所有参数，并初始化了部分参数
 */
public class AliOrder {
    private final String ALIPUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB";
    private final String RSA_PRIVATE = "MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAMQ4cTXzoAe1paFdbIA4J+sWrSKwfmCLb9eRXuxANFrerWxIdedBGbP9PTJ6mUSDyhbsh9KajaRqLWDtqLHPalNRnjhNsM1NrGxpGJwcn4mtlVYu2S+72JxjKdgKwrfq8Dfb36/tGBfnTlX4XPVBJoIgiYmVsYOL+FCseiJQfraPAgMBAAECgYEAwiYKtlRJGne7248BxVhK/wwf4Tv6v3IYBpZ68o2Qf/zmYUbNCjTaxsGh5Klzr1wrAEWnGlX8IhtArTBaAx10WB/hAxs6HAL5Wzu217CL2N6DIesuOLSQAqYuSC2BQ+/f23tsgywtYsnBmPaFfUs1fY1AvWZ5cMXSDUiRLoFsRqkCQQD7n+/veE54KXJ/XeD/vA9XcMtrgNrltqlkYRxe6suel/Pju6TelBrXkmq3cya4zJxK4R6+/ky0nG6ILhUIcSXlAkEAx6Hh+Zmu7T2omi7xZAHoDe+jiOVsywM31Wcays8P8GhP7SJW3HBC2PWvdWUDRwXHA7l4NpYxQgb63WlABWfjYwJBAN4Smb/PffGvIs4mHJ2XbDLP6bhHUOnL/FQLIO7kajDeCvHCeg+2xrnbDzQ4/MO8UXQEmw4Vgb0lEqg9g3Kf6cECQBkAnVy1csMjxcoJtxHfa0DTkpfCpC2I6aVAlIpyBH0Hk3sPofFZ3gVuP9tkG1T51EMTJ4supFywoxq349zJdiECQQDQcoDFtd+POJ6gmuue1CZlZPgUhUObmgaKK4keacTgpDb0rGXQ7UqFDtJiydKJ5//fkEcDRFRoEZNIcu8Tsqqn";

    //请求地址
    private String url = "https://openapi.alipay.com/gateway.do";
    //公共请求参数
    private String app_id = "2016033101258830",
    method = "alipay.trade.query",
    format = "JSON",
    charset="utf-8",
    sign_type="RSA2",
    timestamp,
    version = "1.0",
    app_auth_token,
    biz_content;

	public String getALIPUBLIC_KEY() {
		return ALIPUBLIC_KEY;
	}

	public String getRSA_PRIVATE() {
		return RSA_PRIVATE;
	}

	//订单信息的参数
    private String out_trade_no,
    trade_no;
    
    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public String getTrade_no() {
        return trade_no;
    }

    public void setTrade_no(String trade_no) {
        this.trade_no = trade_no;
    }

    public String getUrl() {
        return url;
    }

    public String getApp_id() {
        return app_id;
    }

    public String getMethod() {
        return method;
    }

    public String getFormat() {
        return format;
    }

    public String getCharset() {
        return charset;
    }

    public String getSign_type() {
        return sign_type;
    }

    public void setSign_type(String sign_type) {
        this.sign_type = sign_type;
    }

    public String getTimestamp() {
        this.timestamp = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
        return timestamp;
    }

    public String getVersion() {
        return version;
    }

    public String getApp_auth_token() {
        return app_auth_token;
    }

    public void setApp_auth_token(String app_auth_token) {
        this.app_auth_token = app_auth_token;
    }

    public String getBiz_content() {
        return biz_content;
    }

    public void setBiz_content(String biz_content) {
        this.biz_content = biz_content;
    }
    
}
